<div id="mainContent">
		<div class="content">
		<span id="end"></span>
			<h3>CONVERSATION ENTRE <?php echo(strtoupper($params['other_user']->getPseudo()));?> ET VOUS :</h3>
			<div id="conversation">
			<?php foreach($params['message'] as $message) {?>
			<div class="<?php if($message->getSenderId()==$params['user']->getId())
									echo "MPEnvoye";
								else 
									echo "MPRecu"; ?>">
				<p><?php 
				echo $message->getContenu();?></p>
				<p class="details"><?php if($message->getSenderId()==$params['user']->getId())
					echo 'Vous';
					else {
					$author = $message->getSenderName(); echo $author['PSEUDO'];}?>, le <?php echo $message->getDateMessage(); ?></p>
				<span class="arrow">&nbsp;</span>
				<a href="index.php?control=user&action=profil&args[]=<?php echo $message->getSenderId(); ?>">
					<img src="photos/<?php echo (file_exists("photos/".$message->getSenderId().".jpg")) ? $message->getSenderId().".jpg" : "noimage.png";?>" alt=""/>
				</a>
			</div>
			<?php } ?>
			
			</div>
			
			<div id="postMP">
				<form method="post" action="#">
					<textarea name="MESSAGEPRIVE" placeholder="Tapez votre message" required></textarea>
					<input type="submit" name="POSTMP" value="Envoyer"/>
				</form>
			</div>
			
		</div>
</div>